<!DOCTYPE html>
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block page_content %}
    <div class="page-header">
        <h1 align="center">Manage your photos!</h1>
    </div>
    <body style="text-align: center">
    <a href="{{ url_for('.photo_drive', username=current_user.username) }}">Upload</a> /
    <a href="{{ url_for('.manage_photo', username=current_user.username) }}">Manage</a>
    <hr>

    {% if not files_list %}
        <p>Nothing here!</p>
    {% endif %}

    {% for photo in files_list %}
        - {{ photo }}
        <a href="{{ url_for('.open_photo', filename=photo, username=current_user.username) }}">open</a>
        <a href="{{ url_for('.delete_photo', filename=photo, username=current_user.username) }}">delete</a><br>
    {% endfor %}
    </body>
{% endblock %}